/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cardHouse.cards;

import java.util.EnumSet;
import java.util.Iterator;
import java.util.Set;

/**
 *This class is specifically for testing the class cardHouse.cards.Card.
 * The only reason it is in the cardHouse.cards package is so that I could iterate through the 
 * SUIT and FACEVALUE enumerations
 * @author Sam
 */
public class MagicTestCard extends Card{
  
  public void testIsDrawn(){
      System.out.println("The value of getIsDrawn() should be false and the value is... " + this.getisDrawn());
      this.setDrawn(true);
      System.out.println("The value of getIsDrawn() should be true and the value is... " + this.getisDrawn());
      this.setDrawn(false);
      System.out.println("The value of getIsDrawn() should be false and the value is... " + this.getisDrawn());
  }   

  
    
  public void testFaceAndSuit(){
        Set<FaceValue> valueSet = EnumSet.allOf(FaceValue.class);
        Set<Suit> suitSet = EnumSet.allOf(Suit.class);
        Iterator<FaceValue> valueIterator = valueSet.iterator();
         
        while(valueIterator.hasNext()){
            FaceValue cardValue = valueIterator.next();
            Iterator<Suit> suitIterator = suitSet.iterator();
            while(suitIterator.hasNext()){
               Suit suitValue = suitIterator.next();
               this.setFaceValue(cardValue);
               this.setSuit(suitValue);
               System.out.println("Now the my Magic Card is the " + this.getFacevalue() + " of " + this.getSuit() + " !!!");
            }//while
        }//while
  }
    
    
}
